import axios from '../utils/utils'


export let login = params => axios.post("/users/checkLogin", params)  //登录
export let adduser = params => axios.post("/users/add", params)  //添加 账号
export let userList = params => axios.get("/users/list", { params })   //账号列表
export let removebtn = params => axios.get("/users/del", { params })   //删除账号
export let batchdel = params => axios.get("/users/batchdel", { params })
export let checkoldpwd = params => axios.get("/users/checkoldpwd", { params }) //检查旧密码是否正确
export let editpwd = params => axios.post("/users/editpwd", params)    //修改密码
export let edit = params => axios.post("/users/edit", params)          //修改商瓶信息
export let accountinfo = params => axios.get("/users/accountinfo", { params })
export let checktoken = params => axios.get("/users/checktoken", { params })   //检查token值
export let avatar_upload = params => axios.post("/users/avatar_upload", params)// 上传文件





